package gdma.hqdes.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import gdma.hqdes.bean.StatIndexItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StatIndexItemMapper extends BaseMapper<StatIndexItem> {

    @Select("select * from stat_index_item where stat_index_id=#{statIndexId}")
    List<StatIndexItem> getStatIndexItems(long statIndexId);

    @Delete("delete from stat_index_item where stat_index_id=#{statIndexId}")
    int deleteByStatIndexId(long statIndexId);

}
